﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using SCS.Core.Models;
using SCSService;
using System.Web;


namespace SCS.Core.ViewModels
{
    public class DiscountManageViewModels
    {
        public List<Discount> DiscountList { get; set; }
        public Product Product { get; set; }

        [DisplayName("ValueSearch")]
        [RegularExpression("([0-9]+.-)")]
        public int? ValueSearch { get; set; }

        [DisplayName("StartDateSearch")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:d}")]
        public DateTime? StartDateSearch { get; set; }

        [DisplayName("EndDateSearch")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:d}")]
        public DateTime? EndDateSearch { get; set; }

        [DisplayName("StatusSearch")]
        public int? StatusSearch { get; set; }

        [DisplayName("TypeDiscounts")]
        public int? TypeDiscounts { get; set; }
    }
}
